garmin_gpi: Seek to image offset in case there's additional headers in the
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 9 Jun 2013 23:05:43 +0000 (23:05 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 9 Jun 2013 23:05:43 +0000 (23:05 +0000)
bmp, such as those inserted by gimp, etc.
Fix warning when compiling with debug.

git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4390 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/garmin_gpi.cc

index cd055b2cc6a5c9ec6d622786e0e8380d8400b9d8..11a6cd37b469a5e82be3eb3cd486b7a1d39e79bf 100644 (file)
@@ -678,7 +678,7 @@ read_tag(const char* caller, const int tag, waypoint* wpt)
 #ifdef GPI_DBG
   {
     int x;
-    unsigned char* b = xmalloc(sz);
+    unsigned char* b = (unsigned char*) xmalloc(sz);
     fprintf(stderr, "Tag: %x\n", tag);
     gbfread(b, 1, sz, fin);
     fprintf(stderr, "\n");